<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询页面</title>
    {{ assets_css "/static/css/bootstrap.min.css" }}
    {{ assets_css "/static/css/layout.css"}}
</head>
<body>
{{ template "/base/nav.html" .}}
<div class="container-fluid">
    <form action=" {{ urlfor `QueryController.Query` }}" method="get">
        <div class="form-group row">
                <label class="col-1 col-form-label pr-0">员工编号查找：</label>
                <div class="col-2 pr-0 pl-0">
                    <input class="form-control" type="text" name="q" value=""/>
                </div>
                <div class="col-1 pl-0">
                    <input class="btn btn-dark " type="submit" value="查找"/>
                </div>
        </div>
    </form>
        <div class="form-group">
            <table class="table table-striped table table-hover table-bordered">
                <tr>
                    <td>员工编号</td>
                    <td>姓名</td>
                    <td>账号</td>
                    <td>性别</td>
                    <td>职务</td>
                    <td>工资</td>
                    <td>状态</td>
                    <td>操作</td>
                </tr>
                {{ range .users }}
                <tr>
                    <td>{{ .Num }}</td>
                    <td>{{ .Name }}</td>
                    <td>{{ .UserName }}</td>
                    <td>{{ .SexText }}</td>
                    <td>{{ .Vocation }}</td>
                    <td>{{ .Salary }}</td>
                    <td>{{ .StatusText }}</td>
                    <td>
                        <a href="{{ urlfor `QueryController.Edit` }}" class="btn btn-success">编辑</a>
                        <a href="#" class="btn btn-primary">删除</a>
                    </td>
                </tr>
                {{ end }}
            </table>
        </div>
</div>
</body>
</html>